/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bgate.core;

/**
 *
 * @author thinhnv
 */
public class Debug {

    public final static boolean DEBUG_ENABLE = true;

    public static void out(String title, String message) {
        if (DEBUG_ENABLE) {
            System.out.println(title + " : " + message);
        }
    }

    public static void s(String message) {
        if (DEBUG_ENABLE) {
            System.out.println("SEND : " + message);
        }
    }

    public static void r(String message) {
        if (DEBUG_ENABLE) {
            System.out.println("RECEIVED : " + message);
        }
    }

    public static void r(String title, String message) {
        if (DEBUG_ENABLE) {
            System.out.println("RECEIVED " + title + " : " + message);
        }
    }

    public static void d(String message) {
        if (DEBUG_ENABLE) {
            System.out.println("DEBUG : " + message);
        }
    }

    public static void l(String message) {
        if (DEBUG_ENABLE) {
            System.out.println("LOG : " + message);
        }
    }
}
